//
//  Util.m
//  oschina
//
//  Created by 如佳 陈 on 2015/06/19.
//  Copyright (c) 2015年 crj. All rights reserved.
//

#import "Util.h"

@implementation Util

+ (void)setUpTableView:(UITableView *)tableView{
    tableView.backgroundColor = __BASIC_BG_COLOR;
    tableView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
    tableView.tableFooterView = [[UIView alloc]init];
    tableView.backgroundColor = __BASIC_BG_COLOR;
    if ([tableView respondsToSelector:@selector(setLayoutMargins:)]) {
        [tableView setLayoutMargins:UIEdgeInsetsZero];
    }
}

+ (void)setUpTableViewCell:(UITableViewCell *)cell{
    cell.separatorInset = UIEdgeInsetsZero;
    if([cell respondsToSelector:@selector(setLayoutMargins:)]){
        cell.layoutMargins = UIEdgeInsetsZero;
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}

@end
